package com.wkbb.common.enums;

/**
 * 部门类型枚举
 *
 */
public enum StructureTypeEnum {

    COMMON(1, "正常"),
    SCHOOLFELLOW(2, "校友"),
    RETIRE(3, "退休"),
    OTHER(4, "其他");

    private StructureTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (StructureTypeEnum organizationType : StructureTypeEnum.values()) {
            if (organizationType.getValue().intValue() == value) {
                return organizationType.getDesc();
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
